package com.wsoft.form.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 自定义表单-数据表
 * </p>
 *
 * @author Z001
 * @since 2024年08月29日 09:11:06
 */
@Getter
@Setter
@TableName("wf_form_table")
@Schema(name = "WfFormTableEntity", description = "自定义表单-数据表")
public class WfFormTableEntity extends BaseEntity {

    @Schema(description = "页面Id")
    @TableField("form_id")
    private Long formId;

    @Schema(description = "表名称")
    @TableField("table_name")
    private String tableName;

    @Schema(description = "表描述")
    @TableField("table_desc")
    private String tableDesc;

    @Schema(description = "实体名称")
    @TableField("model_name")
    private String modelName;

    @Schema(description = "是否参与工作流")
    @TableField("is_bmp")
    private Integer isBmp;

    @Schema(description = "工作流key")
    @TableField(value = "bmp_key",updateStrategy = FieldStrategy.ALWAYS)
    private String bmpKey;

    @Schema(description = "是否创建实体表(1-创建.0-不创建)")
    @TableField("is_create_table")
    private Integer isCreateTable;

}
